﻿using FluentNHibernate.Mapping;
using cludg.Domain.Users;
using cludg.Repository.Security;

namespace cludg.Repository.NHibernate.Config.Security
{
	internal class UserSecurityInfoMap : ClassMap<UserSecurityInfo>
	{
		public UserSecurityInfoMap()
		{
			Table("Users");
			Id(x => x.Id).Length(50).GeneratedBy.Assigned();
			Map(x => x.Email).Length(100);
			Map(x => x.LoginType);
			Map(x => x.Name).Length(100);
			Map(x => x.PasswordHash).Length(100);
			Map(x => x.State);
			Map(x => x.ThirdPartyIdent).Length(100);
		}
	}
}
